
<div class="actionTM">                    
    <div class="row-fluid">
        <div class="span6">
            <h1 class="h1ActTM">
                New Ideal Tattoos
            </h1>
        </div>
        <div class="span6" align="right"><a style="display: block;" class="more" href="guides/lastest">View more<img src="<?php echo STATIC_URL; ?>/img/all.gif"></a></div>
    </div>
    <ul class="ulPublic guide-list-two">
		<?php if(!empty($latestPost)): ?>
		    <?php $cate = $this->config->item('categories'); ?>
		    <?php $permalink = '';$arrUri = array();$i = 1;$indicator = '';$shareLink = ''; ?>
		    <?php foreach($latestPost as $post): ?>
		    <?php $post->post_title = strip_tags($post->post_title); $permalink = permalink(array('text' => $post->post_title, 'id' => $post->id));$shareLink = urlencode($permalink); ?>
		    <?php $arrUri[] = $permalink;?>
		    <li class="liPublic guide-list-two">
				<div class="guide-box " style="height: 200px; margin-bottom: 0px;">
					<a href="<?php echo $permalink; ?>"><img class="step-photo" src="<?php echo 'http://toptattoos.net/uploads/'.$post->post_image;//echo getImage($post->post_image) ?>"></a>
					<span class="guide-content titlemax">
						<a href="<?php echo $permalink; ?>"><?php echo $post->post_title ?></a>
					</span>	
				</div>
			</li>                                                
		    <?php endforeach; ?>       
		<?php endif; ?>      					
    	
    </ul>
</div>